import java.util.Scanner;

public class Work81205 {
    public static void main(String[] args) {
         Scanner scanner = new Scanner(System.in);
        System.out.print("输入数字");
        double[] a = new double[8];
        int i = 0;
        double sum=1;
        for (; i < 8; i++) {
            a[i]=scanner.nextInt();
            sum =sum * a[i];
        }
        System.out.print("积为" +sum);
    }
}
